package com.apesource.bookBuy.conf;

import com.jfinal.config.*;
import com.jfinal.ext.interceptor.SessionInViewInterceptor;
import com.jfinal.template.Engine;

/**
 * @version 1.0
 * @auther:暮雪
 * @date:2025/9/4
 */
public class MyJfinalConfig extends JFinalConfig {
    @Override
    public void configConstant(Constants constants) {
        constants.setDevMode(true);  //开启开发模式
    }

    @Override
    public void configRoute(Routes routes) {

        routes.scan("com.apesource.bookBuy.view");  //view包名

    }

    @Override
    public void configEngine(Engine engine) {

    }

    @Override
    public void configPlugin(Plugins plugins) {

    }

    @Override
    public void configInterceptor(Interceptors interceptors) {
        interceptors.add(new SessionInViewInterceptor());

    }

    @Override
    public void configHandler(Handlers handlers) {

    }
}
